package com.contextor.magiccards.dao.battle;

import com.contextor.magiccards.dao.GenericDao;
import com.contextor.magiccards.dao.utils.Pager;
import com.contextor.magiccards.model.battle.Battle;
import com.contextor.magiccards.model.battle.BattleStatus;
import com.contextor.magiccards.model.character.Personage;
import com.contextor.magiccards.model.user.User;

import java.util.List;

/**
 * User: Sergey
 * Date: 20.03.2011 11:50:17
 */
public interface BattleDao extends GenericDao<Battle, Integer> {

    Battle findWithStatus(User user, BattleStatus status);

    List<Battle> findWithStatus(int shard, String uid, BattleStatus status, Pager pager, Personage personage);
}
